package com.jianguo.service.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jianguo.common.core.domain.BaseEntity;
import com.jianguo.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;

/**
 * 服务对象 pz_service
 *
 * @author xjj
 * @date 2024-03-28
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PzService extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;
    /** 商品编号 */
    @Excel(name = "商品编号")
    private Long num;
    /** 价格 */
    @Excel(name = "价格")
    private Long price;
    /** 标题 */
    @Excel(name = "标题")
    private String title;
    /** 图片路径 */
    @Excel(name = "图片路径")
    private String imgeUrl;
    /** 排序 */
    @Excel(name = "排序")
    private Long sort;
    /** 销量 */
    @Excel(name = "销量")
    private Long salesCount;
    /** 状态 */
    @Excel(name = "状态")
    private Long status;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("num", getNum())
                .append("price", getPrice())
                .append("title", getTitle())
                .append("imgeUrl", getImgeUrl())
                .append("sort", getSort())
                .append("salesCount", getSalesCount())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("deleted", getDeleted())
                .append("remark", getRemark())
                .toString();
    }
}
